package net.sureon.biz;

import net.sureon.common.SureonConstants;
import net.sureon.dao.Company;

/**
 * the company BIZ object.
 * 
 * @author jason
 */
public class CompanyBO extends DefaultCategory implements CategoryAble {
	
	private Company companyVO;
	private long topGroupID;

	public CompanyBO(Company companyVO) {
		this.companyVO = companyVO;
	}

	/**
	 * @return the companyVO
	 */
	public Company getCompanyVO() {
		return companyVO;
	}

	public long getCompanyID() {
		return getCompanyVO().getCompanyID();
	}
	
	public String getContextPath(String relativePath){
		return SureonConstants.DEFAULT_CONTEXT + relativePath;
	}

	/**
	 * @return the topGroupID
	 */
	long getTopGroupID() {
		return topGroupID;
	}

	/**
	 * @param topGroupID the topGroupID to set
	 */
	void setTopGroupID(long topGroupID) {
		this.topGroupID = topGroupID;
	}
	
}
